from flask import Flask,request,render_template
import DBManager

app = Flask(__name__)

@app.route('/')
def hello_world():
	return render_template("index.html")

@app.route('/pp_tasks_list')
def pp_tasks_list():
	return "Tasks:<br/>1) Create feature for add tasks)<br/><a href='/'>Back to main page</a>"

@app.route('/projects')
def projects():
    return render_template("projectlist.html")

@app.route('/signup')
def signup():
    if(request.method=="POST"):
        #create the user record
        1+1
    else:
        return render_template("signup.html")

@app.route('/createproject',methods=['GET','POST'])
def create_project():
    if(request.method=="POST"):
        #adding the project
        
        #redirect to projects
        return "Its POST"
    else:
       return render_template('createproject.html')
    

if __name__=='__main__':
	app.run()